package com.gusha.model;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Table(name="sys_training")
@NamedQuery(name="SysTraining.findAll", query="SELECT s FROM SysTraining s")
@DynamicInsert
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysTraining implements Serializable {
	 private static final long serialVersionUID = 1L;
	 
	 @Id
	 @GeneratedValue(strategy=GenerationType.IDENTITY)  
	 private BigInteger id;
	 
	 @Column(name="training_title")
	 private String trainingTitle;
	 
	 @Column(name="training_video")
	 private String trainingVideo;
	 
	 @Temporal(TemporalType.TIMESTAMP)
	 @Column(name="add_time")
	 private Date addTime;
	 
	 @Temporal(TemporalType.TIMESTAMP)
	 @Column(name="update_time")
	 private Date updateTime;
	 
	 @Column(name="train_describe")
	 private String trainDescribe;
	 
	 @Column(name="add_name")
	 private String addName;
	 
	 @Column(name="update_name")
	 private String updateName;
	 
	 @Column(name="is_delete")
	 private BigInteger isDelete;
	 
	 @Column(name="train_img")
	 private String trainImg;
	 
	 

	public String getTrainImg() {
		return trainImg;
	}

	public void setTrainImg(String trainImg) {
		this.trainImg = trainImg;
	}

	public BigInteger getId() {
		return id;
	}

	public void setId(BigInteger id) {
		this.id = id;
	}

	public String getTrainingTitle() {
		return trainingTitle;
	}

	public void setTrainingTitle(String trainingTitle) {
		this.trainingTitle = trainingTitle;
	}

	public String getTrainingVideo() {
		return trainingVideo;
	}

	public void setTrainingVideo(String trainingVideo) {
		this.trainingVideo = trainingVideo;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}



	public String getTrainDescribe() {
		return trainDescribe;
	}

	public void setTrainDescribe(String trainDescribe) {
		this.trainDescribe = trainDescribe;
	}

	public String getAddName() {
		return addName;
	}

	public void setAddName(String addName) {
		this.addName = addName;
	}

	public String getUpdateName() {
		return updateName;
	}

	public void setUpdateName(String updateName) {
		this.updateName = updateName;
	}


	public BigInteger getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(BigInteger isDelete) {
		this.isDelete = isDelete;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	 
	 
}
